<include file="Public:header"/>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.21/themes/ui-lightness/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="__STATIC__/admin/css/jquery-ui-timepicker-addon.css" type="text/css"/>
<a href="{:U('/Discount/')}">返回</a>
<form action="" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td>商场</td>
            <td>
                <select name="market" id="market">
                    <foreach name="market" item="m">
                        <option value="{$m.id}">{$m.name}</option>
                    </foreach>
                </select>
                <select name="floor" id="floor"></select>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>品牌</td>
            <td>
                <select name="brand">
                    <foreach name="brands" item="brand">
                        <option value="{$brand.id}">{$brand.initials} - {$brand.name}</option>
                    </foreach>
                </select>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>标题:</td>
            <td>
                <input name="title" type="text" maxlength="50"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>折扣提示1:</td>
            <td>
                <input name="k1" type="text" maxlength="50"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>折扣提示2:</td>
            <td>
                <input name="k2" type="text" maxlength="50"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>开始时间:</td>
            <td>
                <input name="start_time" class="time" type="text" maxlength="50" readonly="readonly"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>结束时间:</td>
            <td>
                <input name="end_time" class="time" type="text" maxlength="50" readonly="readonly"/>
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>特卖图片:</td>
            <td>
                <input type="file" name="image">
                <span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td>详细:</td>
            <td>
                {:W('OnlineEditor',array('name'=>'detail'))}<span class="must">*</span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" class="butj" id="button" value=" 提交 "/></td>
        </tr>
    </table>
</form>
<include file="Public:footer"/>
<script type="text/javascript" src="http://code.jquery.com/ui/1.8.21/jquery-ui.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript">
    $(function() {
        $(".time").datetimepicker({
            showTime: true
        });
    });
    var floorUrl = "{:U('Floor/get/mid')}/";
    var brandUrl = "{:U('Fb/get/fid')}/";
    $('#market').adshow();
    $(function() {
        $("#clear").click(function() {
            $("#floor").html("");
            $("#brand").html("");
        });
    });
</script>